import request from '@/utils/request'

// 查询用量数据列表
export function getDosageList(query) {
  let baseUrl = '/datastatistics/terminalXbStatisticAnalysis/blankDosage?pageNum=' + query.pageNum + '&pageSize=' + query.pageSize + '&systemFlag=' + query.systemFlag + '&loginUserId=' + query.loginUserId
  if(query.beginTime !=null && query.beginTime !=''){
    baseUrl += '&beginTime=' + query.beginTime
  }
  if(query.endTime !=null && query.endTime !=''){
    baseUrl += '&endTime=' + query.endTime
  }
  if(query.ldName !=null && query.ldName !=''){
    baseUrl += '&ldName=' + query.ldName
  }
  if(query.sheetsCode !=null && query.sheetsCode !=[]){
    baseUrl += '&sheetsCode=' + query.sheetsCode
  }
  if (query.orderByColumn != null) {
    baseUrl += '&orderByColumn=' + query.orderByColumn
  }
  if (query.isAsc != null) {
    baseUrl += '&isAsc=' + query.isAsc
  }
  return request({
    // url: '/datastatistics/terminalXbStatisticAnalysis/blankDosage?sheetsCode=' + query.sheetsCode + '&beginTime=' + query.beginTime + '&endTime=' + query.endTime + '&pageNum=' + query.pageNum + '&pageSize=' + query.pageSize,
    url: baseUrl,
    method: 'get',
    // params: query
  })
}
